public class Test {
    public static void main(String[] args) {
        Person person1=new Student("张三");
        Person person2=new Student("张三");
        System.out.println(person1.equals(person2));
        System.out.println(person1.hashCode());
        System.out.println(person2.hashCode());
    }
}
